 
<%@page import="com.yourcompany.struts.form.MobileCardDetailsForm"%>
<%@page import="com.dts.project.dao.MobileCardDetailsDao"%> 
 <%
 String target="ViewMobileCardDetails.jsp?status=Updation failed";
 try
 {
 MobileCardDetailsForm form=new MobileCardDetailsForm();
 form.setCardId(Integer.parseInt(request.getParameter("CardId")));
 form.setOperationId(Integer.parseInt(request.getParameter("operationId")));
 form.setCardName(request.getParameter("cardName"));
 form.setCardAmount(Integer.parseInt(request.getParameter("cardAmount")));
 form.setCardNumber(request.getParameter("cardNumber"));
 form.setValidityDate(request.getParameter("validityDate"));
 form.setCardStatus(request.getParameter("cardStatus"));
 MobileCardDetailsDao dao=new MobileCardDetailsDao();
 boolean flag=dao.UpdateMobileCardDetails(form);
 if(flag)
 {
 target="ViewMobileCardDetails.jsp?status=Updation success";
 }
 }
 catch(Exception e)
 {
 e.printStackTrace();
 }
 RequestDispatcher rd=request.getRequestDispatcher(target);
 rd.forward(request,response);
 %>